package org.hope.spring.bean.dependon;

import java.util.Timer;
import java.util.TimerTask;

public class CacheManager {
    public CacheManager() {
        Timer timer = new Timer();
        TimerTask cacheTask = new CacheTask();

        timer.schedule(cacheTask, 0, SystemSettings.REFRESH_CYCLE * 1000);
    }


    public void cycle() {
        System.out.println("初始值:" + SystemSettings.REFRESH_CYCLE);
    }
}
